package com.wyw.design.model.learning.behavioral.emptyobject;

import java.util.Optional;

/**
 * @Title   地址类
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 15:31
 * Update History:
 * Author        Time            Content
 */
public class Address {
    public Address(Country country) {
        this.country = country;
    }

    private Country country;

    public Optional<Country> getCountry() {
        return Optional.ofNullable(country);
    }

    public void setCountry(Country country) {
        this.country = country;
    }
}
